﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
                    xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
                    xmlns:sdk="_http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
                    xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input"
                    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                    mc:Ignorable="d">

    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="Brushes.xaml" />
        <ResourceDictionary Source="Fonts.xaml" />
    </ResourceDictionary.MergedDictionaries>

    <!-- ******MAIN PAGE STYLES****** -->
    <!-- **************************** -->

    <!-- LayoutRoot Grid Style -->
    <Style x:Key="LayoutRootGridStyle"
           TargetType="Grid">
        <Setter Property="Background"
                Value="{StaticResource AccentColorBrush}" />
    </Style>

    <!-- Content Border Style -->
    <Style x:Key="ContentBorderStyle"
           TargetType="Border">
        <Setter Property="Background"
                Value="{StaticResource BlankBackgroundBrush}" />
        <Setter Property="BorderBrush"
                Value="{StaticResource BaseBrush6}" />
        <Setter Property="BorderThickness"
                Value="0,0,200,0" />
        <Setter Property="Margin"
                Value="0,92,0,0" />
        <Setter Property="VerticalAlignment"
                Value="Stretch" />
        <Setter Property="HorizontalAlignment"
                Value="Stretch" />
    </Style>

    <!-- Content Frame Style -->
    <Style x:Key="ContentFrameStyle"
           TargetType="navigation:Frame">
        <Setter Property="Background"
                Value="Transparent" />
        <Setter Property="BorderBrush"
                Value="Transparent" />
        <Setter Property="Padding"
                Value="100,15,58,15" />
        <Setter Property="VerticalContentAlignment"
                Value="Stretch" />
        <Setter Property="HorizontalContentAlignment"
                Value="Stretch" />
    </Style>

    <!-- Navigation Outer StackPanel Style -->
    <Style x:Key="NavigationOuterGridStyle"
           TargetType="Grid" />

    <!-- Navigation Grid Style -->
    <Style x:Key="NavigationGridStyle"
           TargetType="Grid">
        <Setter Property="Background"
                Value="Transparent" />
        <Setter Property="Height"
                Value="87" />
        <Setter Property="Margin"
                Value="0" />
        <Setter Property="VerticalAlignment"
                Value="Top" />
    </Style>

    <!-- Branding Border Style -->
    <Style x:Key="BrandingBorderStyle"
           TargetType="Border">
        <Setter Property="Height"
                Value="46" />
        <Setter Property="Margin"
                Value="101,46,25,2" />
        <Setter Property="VerticalAlignment"
                Value="Top" />
        <Setter Property="HorizontalAlignment"
                Value="Left" />
        <Setter Property="Padding"
                Value="0,5,0,0" />
    </Style>

    <!-- Branding StackPanel Style -->
    <Style x:Key="BrandingStackPanelStyle"
           TargetType="StackPanel">
        <Setter Property="HorizontalAlignment"
                Value="Stretch" />
        <Setter Property="Orientation"
                Value="Vertical" />
    </Style>

    <!-- Logo Icon Style -->
    <Style x:Key="LogoIcon"
           TargetType="ContentControl">
        <Setter Property="Content"
                Value="lorem ipsum dolor sit" />
        <Setter Property="Height"
                Value="24" />
        <Setter Property="Margin"
                Value="186,0,0,-38" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ContentControl">
                    <Grid Margin="0,5,0,0">
                        <TextBlock Style="{StaticResource HeaderTextStyle}"
                                   Text="{TemplateBinding Content}"
                                   Foreground="{StaticResource BlankBackgroundBrush}"
                                   FontWeight="Normal"
                                   FontSize="10.667"
                                   Margin="10,4,0,0"
                                   VerticalAlignment="Center"
                                   Padding="0" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- ApplicationName Style -->
    <Style x:Key="ApplicationNameStyle"
           TargetType="TextBlock">
        <Setter Property="Foreground"
                Value="{StaticResource NavigationForegroundColorBrush}" />
        <Setter Property="FontFamily"
                Value="{StaticResource HeaderFontFamily}" />
        <Setter Property="FontSize"
                Value="{StaticResource ApplicationNameFontSize}" />
        <Setter Property="Margin"
                Value="0,2,0,0" />
        <Setter Property="VerticalAlignment"
                Value="Center" />
        <Setter Property="HorizontalAlignment"
                Value="Left" />
    </Style>

    <!-- Links Border Style -->
    <Style x:Key="LinksBorderStyle"
           TargetType="Border">
        <Setter Property="Background"
                Value="{StaticResource BaseBrush4}" />
        <Setter Property="BorderBrush"
                Value="{StaticResource PageLinksBorderBrush}" />
        <Setter Property="BorderThickness"
                Value="0,0,0,4" />
        <Setter Property="Height"
                Value="44" />
        <Setter Property="Margin"
                Value="0,-43,0,0" />
        <Setter Property="HorizontalAlignment"
                Value="Stretch" />
        <Setter Property="VerticalAlignment"
                Value="Center" />
    </Style>

    <!-- Links StackPanel Style -->
    <Style x:Key="LinksStackPanelStyle"
           TargetType="StackPanel">
        <Setter Property="VerticalAlignment"
                Value="Stretch" />
        <Setter Property="HorizontalAlignment"
                Value="Left" />
        <Setter Property="Orientation"
                Value="Horizontal" />
        <Setter Property="Margin"
                Value="80,0,0,0" />
    </Style>

    <!-- Link Style -->
    <Style x:Key="LinkStyle"
           TargetType="HyperlinkButton">
        <Setter Property="BorderThickness"
                Value="1" />
        <Setter Property="Background"
                Value="{StaticResource HighLightColorBrush}" />
        <Setter Property="BorderBrush"
                Value="{StaticResource BaseBrush4}" />
        <Setter Property="Foreground"
                Value="{StaticResource NavigationForegroundColorBrush}" />
        <Setter Property="FontFamily"
                Value="{StaticResource ContentFontFamily}" />
        <Setter Property="FontSize"
                Value="{StaticResource NavigationFontSize}" />
        <Setter Property="Cursor"
                Value="Hand" />
        <Setter Property="MinHeight"
                Value="28" />
        <Setter Property="MinWidth"
                Value="78" />
        <Setter Property="VerticalContentAlignment"
                Value="Center" />
        <Setter Property="HorizontalContentAlignment"
                Value="Center" />
        <Setter Property="Padding"
                Value="30,4,30,4" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="HyperlinkButton">
                    <Grid x:Name="ButtonGrid"
                          Cursor="{TemplateBinding Cursor}">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal" />
                                <VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00"
                                                                       Duration="00:00:00.0010000"
                                                                       Storyboard.TargetName="InteractiveElementBorder"
                                                                       Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                                       Duration="00:00:00.0010000"
                                                                       Storyboard.TargetName="InteractiveElementBorder"
                                                                       Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00"
                                                                  Value="0.95" />
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                                       Duration="00:00:00.0010000"
                                                                       Storyboard.TargetName="ContentPresenter"
                                                                       Storyboard.TargetProperty="(UIElement.Effect).(DropShadowEffect.BlurRadius)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00"
                                                                  Value="10" />
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                                       Duration="00:00:00.0010000"
                                                                       Storyboard.TargetName="ContentPresenter"
                                                                       Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00"
                                                                  Value="0" />
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                                       Duration="00:00:00.0010000"
                                                                       Storyboard.TargetName="InteractiveBorder"
                                                                       Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00"
                                                                  Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00"
                                                                       Duration="00:00:00.0010000"
                                                                       Storyboard.TargetName="InteractiveElementBorder"
                                                                       Storyboard.TargetProperty="(UIElement.Visibility)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                                       Duration="00:00:00.0010000"
                                                                       Storyboard.TargetName="InteractiveElementBorder"
                                                                       Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00"
                                                                  Value="0.8" />
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                                       Duration="00:00:00.0010000"
                                                                       Storyboard.TargetName="ContentPresenter"
                                                                       Storyboard.TargetProperty="(UIElement.Effect).(DropShadowEffect.BlurRadius)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00"
                                                                  Value="5" />
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                                       Duration="00:00:00.0010000"
                                                                       Storyboard.TargetName="ContentPresenter"
                                                                       Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00"
                                                                  Value="0.5" />
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                                       Duration="00:00:00.0010000"
                                                                       Storyboard.TargetName="InteractiveBorder"
                                                                       Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00"
                                                                  Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0"
                                                                       Storyboard.TargetName="DisabledOverlay"
                                                                       Storyboard.TargetProperty="Visibility">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00"
                                                                       Duration="00:00:00.0010000"
                                                                       Storyboard.TargetName="ContentPresenter"
                                                                       Storyboard.TargetProperty="(FrameworkElement.HorizontalAlignment)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <HorizontalAlignment>Center</HorizontalAlignment>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00"
                                                                       Duration="00:00:00.0010000"
                                                                       Storyboard.TargetName="ContentPresenter"
                                                                       Storyboard.TargetProperty="(FrameworkElement.VerticalAlignment)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <VerticalAlignment>Center</VerticalAlignment>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00"
                                                                       Duration="00:00:00.0010000"
                                                                       Storyboard.TargetName="DisabledOverlay"
                                                                       Storyboard.TargetProperty="(FrameworkElement.HorizontalAlignment)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <HorizontalAlignment>Center</HorizontalAlignment>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00"
                                                                       Duration="00:00:00.0010000"
                                                                       Storyboard.TargetName="DisabledOverlay"
                                                                       Storyboard.TargetProperty="(FrameworkElement.VerticalAlignment)">
                                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <VerticalAlignment>Center</VerticalAlignment>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                                       Duration="00:00:00.0010000"
                                                                       Storyboard.TargetName="ContentPresenter"
                                                                       Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00"
                                                                  Value="0" />
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                                       Duration="00:00:00.0010000"
                                                                       Storyboard.TargetName="DisabledOverlay"
                                                                       Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00"
                                                                  Value="0.5" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="LinkStates">
                                <VisualState x:Name="ActiveLink">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                                       Duration="00:00:00.0010000"
                                                                       Storyboard.TargetName="ActiveBorder"
                                                                       Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00"
                                                                  Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                                       Duration="00:00:00.0010000"
                                                                       Storyboard.TargetName="ContentBorder"
                                                                       Storyboard.TargetProperty="(UIElement.Opacity)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00"
                                                                  Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="InactiveLink" />
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisualElement"
                                                                       Storyboard.TargetProperty="Opacity">
                                            <SplineDoubleKeyFrame KeyTime="0"
                                                                  Value="0.35" />
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                                       Duration="00:00:00.0010000"
                                                                       Storyboard.TargetName="FocusVisualElement"
                                                                       Storyboard.TargetProperty="(Rectangle.RadiusX)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00"
                                                                  Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
                                                                       Duration="00:00:00.0010000"
                                                                       Storyboard.TargetName="FocusVisualElement"
                                                                       Storyboard.TargetProperty="(Rectangle.RadiusY)">
                                            <EasingDoubleKeyFrame KeyTime="00:00:00"
                                                                  Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Unfocused" />
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Rectangle x:Name="FocusVisualElement"
                                   Stroke="{TemplateBinding BorderBrush}"
                                   StrokeThickness="2"
                                   Opacity="0"
                                   Margin="-1"
                                   RadiusX="1"
                                   RadiusY="1" />
                        <Border x:Name="ActiveBorder"
                                MinWidth="{TemplateBinding MinWidth}"
                                MinHeight="{TemplateBinding MinHeight}"
                                Background="{StaticResource HighLightColorBrush}"
                                Opacity="0"
                                BorderBrush="{StaticResource HighLightColorBrush}"
                                BorderThickness="0,0,0,1" />
                        <Border x:Name="ContentBorder"
                                MinWidth="{TemplateBinding MinWidth}"
                                MinHeight="{TemplateBinding MinHeight}"
                                Opacity="1"
                                BorderBrush="{StaticResource BlankBackgroundBrush}"
                                BorderThickness="0.5,0"
                                Margin="0">
                            <ContentPresenter x:Name="ContentPresenter"
                                              HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                              VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                              Margin="{TemplateBinding Padding}"
                                              Content="{TemplateBinding Content}"
                                              ContentTemplate="{TemplateBinding ContentTemplate}"
                                              Opacity="1">
                                <ContentPresenter.Effect>
                                    <DropShadowEffect ShadowDepth="0"
                                                      Color="{StaticResource BaseColor2}"
                                                      Opacity="0.3"
                                                      BlurRadius="0" />
                                </ContentPresenter.Effect>
                            </ContentPresenter>
                        </Border>
                        <Border x:Name="InteractiveBorder"
                                MinWidth="{TemplateBinding MinWidth}"
                                MinHeight="{TemplateBinding MinHeight}"
                                Background="{StaticResource HoverHyperLinkBackgroundColorBrush}"
                                BorderThickness="0.5,0"
                                Opacity="0"
                                BorderBrush="{StaticResource BlankBackgroundBrush}"
                                Margin="0" />
                        <Border x:Name="InteractiveElementBorder"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                Margin="1,0,0,0"
                                Visibility="Collapsed">
                            <TextBlock x:Name="InteractiveElement"
                                       Foreground="{StaticResource HoverHyperlinkForegroundColorBrush}"
                                       FontSize="{TemplateBinding FontSize}"
                                       FontWeight="{TemplateBinding FontWeight}"
                                       HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                       VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                       Margin="{TemplateBinding Padding}"
                                       Text="{TemplateBinding Content}" />
                        </Border>
                        <TextBlock x:Name="DisabledOverlay"
                                   HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                   VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                   Margin="{TemplateBinding Padding}"
                                   Text="{TemplateBinding Content}"
                                   Foreground="{StaticResource BaseBrush5}"
                                   Visibility="Collapsed" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!-- Divider Style -->
    <Style x:Key="DividerStyle"
           TargetType="Rectangle">
        <Setter Property="Visibility"
                Value="Collapsed" />
    </Style>

    <!-- ******CONTENT PAGE STYLES****** -->
    <!-- ******************************* -->
    <!-- Page Style -->
    <Style x:Key="PageStyle"
           TargetType="navigation:Page" />

    <!-- Page ScrollViewer Style -->
    <Style x:Key="PageScrollViewerStyle"
           TargetType="ScrollViewer">
        <Setter Property="BorderBrush"
                Value="Transparent" />
        <Setter Property="BorderThickness"
                Value="0,1,0,1" />
        <Setter Property="Margin"
                Value="-58,-15,-58,-15" />
        <Setter Property="Padding"
                Value="58,0,58,0" />
        <Setter Property="VerticalScrollBarVisibility"
                Value="Auto" />
        <Setter Property="HorizontalScrollBarVisibility"
                Value="Auto" />
    </Style>

    <!-- Content Panel Style -->
    <Style x:Key="ContentStackPanelStyle"
           TargetType="StackPanel" />

    <!-- Header Text Style -->
    <Style x:Key="HeaderTextStyle"
           TargetType="TextBlock">
        <Setter Property="Foreground"
                Value="{StaticResource BaseBrush5}" />
        <Setter Property="FontFamily"
                Value="{StaticResource HeaderFontFamily}" />
        <Setter Property="FontSize"
                Value="{StaticResource HeaderFontSize}" />
        <Setter Property="TextWrapping"
                Value="Wrap" />
        <Setter Property="Margin"
                Value="0,15,0,4" />
        <Setter Property="HorizontalAlignment"
                Value="Left" />
    </Style>

    <!-- Content Text Style -->
    <Style x:Key="ContentTextStyle"
           TargetType="TextBlock">
        <Setter Property="Foreground"
                Value="{StaticResource BodyTextColorBrush}" />
        <Setter Property="FontFamily"
                Value="{StaticResource ContentFontFamily}" />
        <Setter Property="FontSize"
                Value="{StaticResource ContentFontSize}" />
        <Setter Property="TextWrapping"
                Value="Wrap" />
        <Setter Property="Margin"
                Value="0,2,0,2" />
        <Setter Property="HorizontalAlignment"
                Value="Left" />
    </Style>

    <!-- **********LOGIN STYLES********* -->
    <!-- ******************************* -->
    <!-- Login Container Style -->

    <!-- Spacer Style -->
    <Style x:Key="SpacerStyle"
           TargetType="TextBlock">
        <Setter Property="FontSize"
                Value="11" />
        <Setter Property="Foreground"
                Value="#FFFFFFFF" />
        <Setter Property="HorizontalAlignment"
                Value="Right" />
        <Setter Property="VerticalAlignment"
                Value="Center" />
        <Setter Property="Margin"
                Value="6,2" />
    </Style>

    <!-- Welcome Text Style -->
    <Style x:Key="WelcomeTextStyle"
           TargetType="TextBlock">
        <Setter Property="FontSize"
                Value="11" />
        <Setter Property="Foreground"
                Value="#FFFFFFFF" />
        <Setter Property="VerticalAlignment"
                Value="Top" />
        <Setter Property="Margin"
                Value="0,2,0,0" />
    </Style>

    <!-- LoginRegister Link Style -->

    <!-- DataTemplate for Origins -->
    <DataTemplate x:Key="OriginsDataTemplate">
        <Grid Width="370"
              Background="#AA000000">
            <TextBlock Foreground="#22ffffff"
                       Margin="4+0,2+0"
                       FontSize="30"
                       Text="{Binding Name}" />
            <StackPanel HorizontalAlignment="Right"
                        Margin="0, 0, 8, 0">
                <TextBlock Text="count: "
                           Foreground="White" />
                <TextBlock HorizontalAlignment="Right"
                           Foreground="White"
                           Text="{Binding Count}"
                           Padding="2" />
            </StackPanel>
        </Grid>
    </DataTemplate>

    <!-- Login PasswordBox Style -->
    <Style x:Key="PasswordBoxStyle"
           TargetType="PasswordBox">
        <Setter Property="Width"
                Value="316" />
    </Style>

    <!-- Login Controls StackPanel Style -->
    <Style x:Key="LoginControlsStackPanelStyle"
           TargetType="StackPanel">
        <Setter Property="Margin"
                Value="0,0,0,8" />
    </Style>

    <!-- Login Control Style -->
    <Style x:Key="LoginControlStyle"
           TargetType="StackPanel">
        <Setter Property="Orientation"
                Value="Horizontal" />
        <Setter Property="Margin"
                Value="0,4,0,2" />
        <Setter Property="HorizontalAlignment"
                Value="Stretch" />
    </Style>

    <!-- Login Text Style -->
    <Style x:Key="LoginTextStyle"
           TargetType="TextBlock">
        <Setter Property="Width"
                Value="60" />
        <Setter Property="Margin"
                Value="0,0,6,0" />
        <Setter Property="HorizontalAlignment"
                Value="Left" />
        <Setter Property="VerticalAlignment"
                Value="Center" />
        <Setter Property="TextAlignment"
                Value="Right" />
    </Style>

    <!-- Login TextBox Style -->
    <Style x:Key="LoginTextBoxStyle"
           TargetType="TextBox">
        <Setter Property="Width"
                Value="316" />
        <Setter Property="MaxLength"
                Value="50" />
        <Setter Property="Margin"
                Value="0,0,20,0" />
        <Setter Property="HorizontalAlignment"
                Value="Left" />
        <Setter Property="VerticalAlignment"
                Value="Center" />
    </Style>

    <!-- Comment Style -->
    <Style x:Key="CommentStyle"
           TargetType="TextBlock">
        <Setter Property="FontSize"
                Value="9" />
        <Setter Property="FontWeight"
                Value="Bold" />
        <Setter Property="Foreground"
                Value="#FF000000" />
        <Setter Property="Margin"
                Value="3,0,0,0" />
    </Style>

    <!-- Register Login Link Panel Style -->
    <Style x:Key="RegisterLoginLinkPanelStyle"
           TargetType="StackPanel">
        <Setter Property="HorizontalAlignment"
                Value="Left" />
        <Setter Property="VerticalAlignment"
                Value="Bottom" />
        <Setter Property="Margin"
                Value="0,3,0,0" />
    </Style>

    <!-- Register Login Button Style -->

    <!-- Error Window Style -->
    <Style x:Key="ErrorWindowStyle"
           TargetType="controls:ChildWindow">
        <Setter Property="FontFamily"
                Value="{StaticResource ContentFontFamily}" />
        <Setter Property="FontSize"
                Value="{StaticResource ContentFontSize}" />
        <Setter Property="TextOptions.TextHintingMode"
                Value="Animated" />
        <Setter Property="IsTabStop"
                Value="false" />
        <Setter Property="TabNavigation"
                Value="Cycle" />
        <Setter Property="HorizontalAlignment"
                Value="Center" />
        <Setter Property="VerticalAlignment"
                Value="Center" />
        <Setter Property="HorizontalContentAlignment"
                Value="Stretch" />
        <Setter Property="VerticalContentAlignment"
                Value="Stretch" />
        <Setter Property="BorderThickness"
                Value="1" />
        <Setter Property="BorderBrush"
                Value="{StaticResource BaseBrush5}" />
        <Setter Property="OverlayBrush"
                Value="{StaticResource PageOverlayBrush}" />
        <Setter Property="OverlayOpacity"
                Value="1" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="controls:ChildWindow">
                    <Grid x:Name="Root">
                        <Grid.Resources>
                            <Style x:Key="ButtonStyle"
                                   TargetType="Button">
                                <Setter Property="Background"
                                        Value="{StaticResource BlankBackgroundBrush}" />
                                <Setter Property="Foreground"
                                        Value="{StaticResource TextContentBrush}" />
                                <Setter Property="Padding"
                                        Value="3" />
                                <Setter Property="BorderThickness"
                                        Value="1" />
                                <Setter Property="BorderBrush">
                                    <Setter.Value>
                                        <LinearGradientBrush EndPoint="0.5,1"
                                                             StartPoint="0.5,0">
                                            <GradientStop Color="{StaticResource BaseColor7}"
                                                          Offset="0" />
                                            <GradientStop Color="{StaticResource BaseColor5}"
                                                          Offset="0.375" />
                                            <GradientStop Color="{StaticResource BaseColor5}"
                                                          Offset="0.375" />
                                            <GradientStop Color="{StaticResource BaseColor4}"
                                                          Offset="1" />
                                        </LinearGradientBrush>
                                    </Setter.Value>
                                </Setter>
                                <Setter Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate TargetType="Button">
                                            <Grid x:Name="grid"
                                                  HorizontalAlignment="Center"
                                                  VerticalAlignment="Center">
                                                <VisualStateManager.VisualStateGroups>
                                                    <VisualStateGroup x:Name="CommonStates">
                                                        <VisualState x:Name="Normal" />
                                                        <VisualState x:Name="MouseOver">
                                                            <Storyboard>
                                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility"
                                                                                               Storyboard.TargetName="X_Fuzz2">
                                                                    <DiscreteObjectKeyFrame KeyTime="0"
                                                                                            Value="Visible" />
                                                                </ObjectAnimationUsingKeyFrames>
                                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility"
                                                                                               Storyboard.TargetName="X_Fuzz1">
                                                                    <DiscreteObjectKeyFrame KeyTime="0"
                                                                                            Value="Visible" />
                                                                </ObjectAnimationUsingKeyFrames>
                                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility"
                                                                                               Storyboard.TargetName="X_Fuzz0">
                                                                    <DiscreteObjectKeyFrame KeyTime="0"
                                                                                            Value="Visible" />
                                                                </ObjectAnimationUsingKeyFrames>
                                                                <DoubleAnimation Duration="0"
                                                                                 To="0.95"
                                                                                 Storyboard.TargetProperty="Opacity"
                                                                                 Storyboard.TargetName="X" />
                                                            </Storyboard>
                                                        </VisualState>
                                                        <VisualState x:Name="Pressed">
                                                            <Storyboard>
                                                                <DoubleAnimation Duration="0"
                                                                                 To="0.85"
                                                                                 Storyboard.TargetProperty="Opacity"
                                                                                 Storyboard.TargetName="X" />
                                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility"
                                                                                               Storyboard.TargetName="X_Fuzz2">
                                                                    <DiscreteObjectKeyFrame KeyTime="0"
                                                                                            Value="Visible" />
                                                                </ObjectAnimationUsingKeyFrames>
                                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility"
                                                                                               Storyboard.TargetName="X_Fuzz1">
                                                                    <DiscreteObjectKeyFrame KeyTime="0"
                                                                                            Value="Visible" />
                                                                </ObjectAnimationUsingKeyFrames>
                                                                <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility"
                                                                                               Storyboard.TargetName="X_Fuzz0">
                                                                    <DiscreteObjectKeyFrame KeyTime="0"
                                                                                            Value="Visible" />
                                                                </ObjectAnimationUsingKeyFrames>
                                                            </Storyboard>
                                                        </VisualState>
                                                        <VisualState x:Name="Disabled">
                                                            <Storyboard>
                                                                <DoubleAnimation Duration="0"
                                                                                 To="0.5"
                                                                                 Storyboard.TargetProperty="Opacity"
                                                                                 Storyboard.TargetName="X" />
                                                            </Storyboard>
                                                        </VisualState>
                                                    </VisualStateGroup>
                                                </VisualStateManager.VisualStateGroups>
                                                <Path x:Name="X_Fuzz2"
                                                      Data="F1 M6.7426758,3.8525391 L9.1108398,1.55957 L6.8383789,0.5 L4.902832,2.4355471 L2.9672849,0.5 L0.69482398,1.55957 L3.062988,3.8525391 L0.52783197,6.351563 L2.9672849,7.6005859 L4.8979492,5.5751948 L6.8540039,7.6005859 L9.277832,6.351563 L6.7426758,3.8525391 z"
                                                      Fill="{StaticResource FuzzBrush1}"
                                                      HorizontalAlignment="Center"
                                                      Height="10"
                                                      Margin="0,-1,0,0"
                                                      Opacity="1"
                                                      RenderTransformOrigin="0.5,0.5"
                                                      Stretch="Fill"
                                                      Stroke="{StaticResource FuzzBrush1}"
                                                      VerticalAlignment="Center"
                                                      Width="10"
                                                      UseLayoutRounding="False"
                                                      Visibility="Collapsed"
                                                      StrokeThickness="0"
                                                      StrokeDashCap="Round"
                                                      StrokeEndLineCap="Round"
                                                      StrokeStartLineCap="Round">
                                                    <Path.RenderTransform>
                                                        <TransformGroup>
                                                            <ScaleTransform ScaleY="1.3"
                                                                            ScaleX="1.3" />
                                                            <SkewTransform />
                                                            <RotateTransform />
                                                            <TranslateTransform X="8.8817841970012523E-16"
                                                                                Y="4.4408920985006262E-16" />
                                                        </TransformGroup>
                                                    </Path.RenderTransform>
                                                </Path>
                                                <Path x:Name="X_Fuzz1"
                                                      Data="F1 M6.7426758,3.8525391 L9.1108398,1.55957 L6.8383789,0.5 L4.902832,2.4355471 L2.9672849,0.5 L0.69482398,1.55957 L3.062988,3.8525391 L0.52783197,6.351563 L2.9672849,7.6005859 L4.8979492,5.5751948 L6.8540039,7.6005859 L9.277832,6.351563 L6.7426758,3.8525391 z"
                                                      Fill="{StaticResource FuzzBrush2}"
                                                      HorizontalAlignment="Center"
                                                      Height="10"
                                                      Margin="0,-1,0,0"
                                                      Opacity="1"
                                                      RenderTransformOrigin="0.5,0.5"
                                                      Stretch="Fill"
                                                      Stroke="{StaticResource FuzzBrush2}"
                                                      VerticalAlignment="Center"
                                                      Width="10"
                                                      UseLayoutRounding="False"
                                                      Visibility="Collapsed"
                                                      StrokeThickness="0"
                                                      StrokeEndLineCap="Round"
                                                      StrokeStartLineCap="Round"
                                                      StrokeDashCap="Round">
                                                    <Path.RenderTransform>
                                                        <TransformGroup>
                                                            <ScaleTransform ScaleY="1.1"
                                                                            ScaleX="1.1" />
                                                            <SkewTransform />
                                                            <RotateTransform />
                                                            <TranslateTransform X="3.3306690738754696E-16"
                                                                                Y="6.6613381477509392E-16" />
                                                        </TransformGroup>
                                                    </Path.RenderTransform>
                                                </Path>
                                                <Path x:Name="X_Fuzz0"
                                                      Data="F1 M6.7426758,3.8525391 L9.1108398,1.55957 L6.8383789,0.5 L4.902832,2.4355471 L2.9672849,0.5 L0.69482398,1.55957 L3.062988,3.8525391 L0.52783197,6.351563 L2.9672849,7.6005859 L4.8979492,5.5751948 L6.8540039,7.6005859 L9.277832,6.351563 L6.7426758,3.8525391 z"
                                                      Fill="{StaticResource FuzzBrush1}"
                                                      HorizontalAlignment="Center"
                                                      Height="10"
                                                      Margin="0,-1,0,0"
                                                      Opacity="1"
                                                      Stretch="Fill"
                                                      Stroke="{StaticResource FuzzBrush1}"
                                                      VerticalAlignment="Center"
                                                      Width="10"
                                                      UseLayoutRounding="False"
                                                      Visibility="Collapsed"
                                                      StrokeThickness="0"
                                                      StrokeStartLineCap="Round"
                                                      StrokeEndLineCap="Round"
                                                      StrokeDashCap="Round" />
                                                <Path x:Name="X"
                                                      Data="F1 M6.7426758,3.8525391 L9.1108398,1.55957 L6.8383789,0.5 L4.902832,2.4355471 L2.9672849,0.5 L0.69482398,1.55957 L3.062988,3.8525391 L0.52783197,6.351563 L2.9672849,7.6005859 L4.8979492,5.5751948 L6.8540039,7.6005859 L9.277832,6.351563 L6.7426758,3.8525391 z"
                                                      Fill="{StaticResource BaseBrush3}"
                                                      HorizontalAlignment="Center"
                                                      Height="10"
                                                      Margin="0,-1,0,0"
                                                      Opacity="0.7"
                                                      Stretch="Fill"
                                                      VerticalAlignment="Center"
                                                      Width="10"
                                                      Stroke="{StaticResource BaseBrush4}"
                                                      UseLayoutRounding="False"
                                                      StrokeThickness="0"
                                                      StrokeStartLineCap="Round"
                                                      StrokeEndLineCap="Round"
                                                      StrokeDashCap="Round" />
                                            </Grid>
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>
                        </Grid.Resources>
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="WindowStates">
                                <VisualState x:Name="Open">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="0"
                                                                       Storyboard.TargetProperty="Opacity"
                                                                       Storyboard.TargetName="Overlay">
                                            <EasingDoubleKeyFrame KeyTime="0"
                                                                  Value="0" />
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.3"
                                                                  Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="0"
                                                                       Storyboard.TargetProperty="(RenderTransform).(Children)[0].ScaleX"
                                                                       Storyboard.TargetName="ContentRoot">
                                            <SplineDoubleKeyFrame KeyTime="0"
                                                                  Value="0" />
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.25"
                                                                  Value="0" />
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.4"
                                                                  Value="1" />
                                            <SplineDoubleKeyFrame KeySpline="0,0,0.5,1"
                                                                  KeyTime="00:00:00.45"
                                                                  Value="1.05" />
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.55"
                                                                  Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="0"
                                                                       Storyboard.TargetProperty="(RenderTransform).(Children)[0].ScaleY"
                                                                       Storyboard.TargetName="ContentRoot">
                                            <SplineDoubleKeyFrame KeyTime="0"
                                                                  Value="0" />
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.25"
                                                                  Value="0" />
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.4"
                                                                  Value="1" />
                                            <SplineDoubleKeyFrame KeySpline="0,0,0.5,1"
                                                                  KeyTime="00:00:00.45"
                                                                  Value="1.05" />
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.55"
                                                                  Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                                <VisualState x:Name="Closed">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="0"
                                                                       Storyboard.TargetProperty="Opacity"
                                                                       Storyboard.TargetName="Overlay">
                                            <EasingDoubleKeyFrame KeyTime="0"
                                                                  Value="1" />
                                            <EasingDoubleKeyFrame KeyTime="00:00:00.3"
                                                                  Value="0" />
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="0"
                                                                       Storyboard.TargetProperty="(RenderTransform).(Children)[0].ScaleX"
                                                                       Storyboard.TargetName="ContentRoot">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.2"
                                                                  Value="1" />
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.25"
                                                                  Value="1.05" />
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.45"
                                                                  Value="0" />
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames BeginTime="0"
                                                                       Storyboard.TargetProperty="(RenderTransform).(Children)[0].ScaleY"
                                                                       Storyboard.TargetName="ContentRoot">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.2"
                                                                  Value="1" />
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.25"
                                                                  Value="1.05" />
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.45"
                                                                  Value="0" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Grid x:Name="Overlay"
                              Background="{TemplateBinding OverlayBrush}"
                              HorizontalAlignment="Stretch"
                              Margin="0"
                              Opacity="{TemplateBinding OverlayOpacity}"
                              VerticalAlignment="Top" />
                        <Grid x:Name="ContentRoot"
                              HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
                              Height="{TemplateBinding Height}"
                              RenderTransformOrigin="0.5,0.5"
                              VerticalAlignment="{TemplateBinding VerticalAlignment}"
                              Width="{TemplateBinding Width}">
                            <Grid.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform />
                                    <SkewTransform />
                                    <RotateTransform />
                                    <TranslateTransform />
                                </TransformGroup>
                            </Grid.RenderTransform>
                            <Border BorderThickness="1"
                                    CornerRadius="2"
                                    HorizontalAlignment="Stretch"
                                    Margin="-1"
                                    VerticalAlignment="Stretch" />
                            <Border BorderThickness="1"
                                    CornerRadius="2.25"
                                    HorizontalAlignment="Stretch"
                                    Margin="-2"
                                    VerticalAlignment="Stretch" />
                            <Border BorderBrush="{StaticResource DropShadowBrush3}"
                                    BorderThickness="1"
                                    Background="{StaticResource DropShadowBrush3}"
                                    CornerRadius="2.5"
                                    HorizontalAlignment="Stretch"
                                    Margin="-3"
                                    VerticalAlignment="Stretch" />
                            <Border BorderBrush="{StaticResource DropShadowBrush4}"
                                    BorderThickness="1"
                                    Background="{StaticResource DropShadowBrush4}"
                                    CornerRadius="2.75"
                                    HorizontalAlignment="Stretch"
                                    Margin="-4"
                                    VerticalAlignment="Stretch" />
                            <Border BorderBrush="{StaticResource BaseBrush6}"
                                    BorderThickness="{TemplateBinding BorderThickness}"
                                    Background="{StaticResource BlankBackgroundBrush}">
                                <Border Background="{StaticResource WindowBackgroundBrush}">
                                    <Grid>
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="Auto"
                                                           MinHeight="29" />
                                            <RowDefinition />
                                        </Grid.RowDefinitions>
                                        <Border x:Name="Chrome"
                                                BorderBrush="{StaticResource BaseBrush5}"
                                                BorderThickness="0,0,0,1"
                                                Width="Auto"
                                                Background="{StaticResource NormalInnerBorderBrush}">
                                            <Grid Height="Auto"
                                                  Width="Auto">
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition />
                                                    <ColumnDefinition Width="47" />
                                                </Grid.ColumnDefinitions>
                                                <ContentControl Content="{TemplateBinding Title}"
                                                                FontWeight="Bold"
                                                                HorizontalAlignment="Stretch"
                                                                IsTabStop="False"
                                                                Margin="6,0"
                                                                VerticalAlignment="Center"
                                                                Foreground="{StaticResource BaseBrush4}" />
                                                <Button x:Name="CloseButton"
                                                        Grid.Column="1"
                                                        HorizontalAlignment="Center"
                                                        Height="16"
                                                        IsTabStop="False"
                                                        Style="{StaticResource ButtonStyle}"
                                                        VerticalAlignment="Center"
                                                        Width="15"
                                                        Margin="0,3" />
                                            </Grid>
                                        </Border>
                                        <Border Background="{TemplateBinding Background}"
                                                Margin="9"
                                                Grid.Row="1">
                                            <ContentPresenter x:Name="ContentPresenter"
                                                              ContentTemplate="{TemplateBinding ContentTemplate}"
                                                              Content="{TemplateBinding Content}"
                                                              HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                                              VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                                        </Border>
                                    </Grid>
                                </Border>
                            </Border>
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Foreground"
                Value="{StaticResource TextContentBrush}" />
    </Style>

</ResourceDictionary>
